<?php echo $javascript->link('jquery.min.js', false); ?>
<?php echo $javascript->link('jquery.pager.js', false); ?>
<?php echo $javascript->link('jquery-ui-1.7.2.custom.min.js', false); ?>
<?php echo $javascript->link('button', false); ?>


<div class="nav">
    <span class="nav-updir">
        <?php 
                // if($showEntry) 
                    // echo $html->link(__('管理入口', true), $html->url('/admin/users/viewUsers', true)); 
        ?>
    </span>
    <?php if($currentEntry->filename != '') { ?>
        <span class="nav-currentpath">当前目录 <?php echo $currentEntry->filename; ?></span>
    <?php } ?>
</div>
<?php echo $this->element('sidepain'); ?>
<div class="maincontent filegrid">
    <div id="flashMessageWrapper"><?php $session->flash(); ?></div>

	

    <?php if (!empty($subdirs)): ?>
    <table>
      <tr>
        <?php $i = 0; foreach ($subdirs as $name => $entry): ?>
        <td class="griditem" style="clear: none">
          <a href="<?php echo $html->url("/ftpfiles/index/{$entry->b64filename}"); ?>" title="<?php echo $entry->Name; ?>">
            <img class="logo" src="<?php echo $html->url('/ftpfiles/icon/'.$entry->b64filename); ?>" />
            <p><?php echo $entry->Name; ?></p>
          </a>
        </td>
        <?php if (++$i % 4 == 0) echo '</tr><tr>'; ?>
        <?php endforeach; ?>
      </tr>
    </table>
    <?php endif; ?>

</div>
